  -- High Warlord Naj'entus --
function spell0_22887(pUnit, Event) --@Berserk,n/a--
pUnit:FullCastSpellOnTarget(26662,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22887', 800, 1)
end
function spell1_22887(pUnit, Event) --@Impaling Spine,n/a--
pUnit:FullCastSpellOnTarget(39837,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22887', 30000, 1)
end
function spell2_22887(pUnit, Event) --@Tidal Burst,n/a--
pUnit:FullCastSpellOnTarget(39878,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22887', 0, 1)
end
function spell3_22887(pUnit, Event) --@Tidal Shield,n/a--
pUnit:FullCastSpellOnTarget(39872,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22887', 45000, 1)
end
function Sorts_22887(pUnit, Event)
choix_sorts_22887 = math.random(0, 3)
if choix_sorts_22887 == 0 then
pUnit:RegisterEvent('spell0_22887', 1, 1)
end
if choix_sorts_22887 == 1 then
pUnit:RegisterEvent('spell1_22887', 1, 1)
end
if choix_sorts_22887 == 2 then
pUnit:RegisterEvent('spell2_22887', 1, 1)
end
if choix_sorts_22887 == 3 then
pUnit:RegisterEvent('spell3_22887', 1, 1)
end
end
function mob22887_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_22887', math.random(1500, 3000), 1)
end
function mob22887_Leave(pUnit, Event)
end
function mob22887_Kill(pUnit, Event)
end
function mob22887_Die(pUnit, Event)
pUnit:RemoveEvents();
end
RegisterUnitEvent(22887, 1, 'mob22887_Action')
RegisterUnitEvent(22887, 2, 'mob22887_Leave')
RegisterUnitEvent(22887, 3, 'mob22887_Kill')
RegisterUnitEvent(22887, 4, 'mob22887_Die')
